Resolution and functionality enhancements in optical metrology