BP is selling its U.S. onshore wind energy assets as the company shifts its renewable energy focus toward solar power.