Thermomechanical design optimization and acceptance of the wide-angle camera for the Rosetta mission