A dynamic model based on the piston flow concept for the thermal characterization of solar collectors