Anchoring Phase Transition and Bulk Phase Sequence of Liquid Crystals Studied by Scanning Tunneling Microscopy