A framework for estimating spherical vector fields using localized basis functions and its application to SuperDARN data processing