Optimal risk sharing with non-monotone monetary functions