Multiscale modeling of beam and plates using customized second-generation wavelets