Measurement of missing transverse energy with the CMS detector at the LHC