EmbodiedOcc: Embodied 3D Occupancy Prediction for Vision-based Online Scene Understanding