Demi Lovato opens up about her struggles with mental illness and sobriety