Exposure-based reputation mechanism promotes the evolution of cooperation