Ezra Miller avoids jail with plea deal for unlawful trespass