Precision optical measurements using weak values and nonclassical states