Entanglement and squeezing in continuous-variable systems