Morphological stability analysis of directional solidification in thin samples with lateral heat transfer