Pope Leo writing first document on needs of poor, sources say