Heegaard and regular genus of 3-manifolds with boundary