Impact parameter and beam energy dependence for azimuthal asymmetry of direct photons and free protons in intermediate energy heavy-ion collisions