Control and tomography of phonons in cavity optomechanical nanostructures