Blasting Obama on Libya and Egypt, Romney accused of opportunism