Surface Phase Transitions in Nematic Liquid Crystals With Planar Anchoring