Robust And Efficient Active Inference For Perception, Action, And Learning