Simple method could help reduce ever-growing risk of bacterial resistance