Gravar-mail: Optimally Weighted L(2) Distance for Functional Data