Agri-environmental measures and the breeding ecology of a declining farmland bird