Leptonic contribution to the effective electromagnetic coupling constant up to three loops