Man confessed to sending ricin-scare letters, document says