Conspecific density and habitat quality drive the defence and vocal behaviour of a territorial passerine