Refs #9531. Further reduced number of virtual function calls.

Followed Roman's suggestion to make getFitWeights() virtual and remove getWeight as well as calSqrtW from CostFuncLeastSquares.