Influence of microscopic and macroscopic effects on attosecond pulse generation using two-color laser fields