Impact of strength and size of donors on the optoelectronic properties of D–π–A sensitizers