Pre- and post-discharge factors influencing early readmission to acute psychiatric wards: implications for quality-of-care indicators in psychiatry