Solidification of a 2-D semitransparent medium using the lattice Boltzmann method and the finite volume method