Beam tests of lead tungstate crystal matrices and a silicon strip preshower detector for the CMS electromagnetic calorimeter