Inverse-Designed BaCO₃/TiN Optical Tamm State Sensors with Enhanced Refractive Index Sensitivity