Joaquin Phoenix's Joker laugh was medically inspired