CO, CI and CII observations of NGC 7023