Variation of the nebular dust attenuation curve with the properties of local star-forming galaxies