An approximate mathematical model for solidification of a flowing liquid in a microchannel