Gravitational Microlensing of Gamma-Ray Burst Afterglows by Single and Binary Stars