A class of wavelet-based finite element methods for computational mechanics