Roseanne Barr: I had taken sleeping pills before writing offensive tweet