A non-isothermal moving-boundary model for continuous and intermittent drying of pears