Simulated glass-forming polymer melts: Glass transition temperature and elastic constants of the glassy state