Riccati-less approach for optimal control and estimation: an application to two-dimensional boundary layers