Solar power has record year despite bankruptcies