OptiState: State Estimation of Legged Robots using Gated Networks with Transformer-based Vision and Kalman Filtering