Advances in the Application of Wavelets to the Numerical Solution of Physical Problems as Illustrated by Electronic Structure Calculations