Individual, Dictator, and Democratic punishment in public good games with perfect and imperfect observability