Calculation of selected photolytic rate constants over a diurnal range. a computer algorithm