Jamie Lynn Spears says God helped her mental illness struggles after daughter’s near-death experience