Generation and detection of squeezed phonons in lattice dynamics by ultrafast optical excitations