Hypersound studies of the electron doped Ln2−xCexCuO4 and hole doped La2−xMxCuO4 high-Tc single crystals