The planar to cellular transition during the directional solidification of alloys