Dove Cameron needed sad songs to express her ‘personhood’: ‘I have to write for me first and foremost’