Coherent acoustic phonons in van der Waals nanolayers and heterostructures