Hybrid Neural State-Space Modeling for Supervised and Unsupervised Electrocardiographic Imaging