Squeezing metrology: A unified framework