Design, construction, quality control and performance study with cosmic rays of modules for the LHCb electromagnetic calorimeter