Solidification of a semitransparent planar layer subjected to radiative and convective cooling