The United Arab Emirates has secretly sent warplanes on bombing raids against militias in Libya over the past week, using bases in Egypt, US officials say.