Katy Perry's emails aired in legal dispute