Riccati equations in stochastic boundary control theory