TacIPC: Intersection- and Inversion-free FEM-based Elastomer Simulation For Optical Tactile Sensors