Bosnian PM resigns over reforms