Voluntary provision of a public good and individual morality