Joining a substrate with an electronic processing unit and a substrate with a micromechanical structure