A method of determining the time constant of the flat-plate solar collector