Automated Estimation of Patient-Specific Boundary Conditions for Cardiovascular Simulations: an Optimal Control Approach