How does pay-per-click (PPC) work in digital marketing?