Irradiance and atmospheric optical properties from photovoltaic power data: model improvements and first results