Determining foreground contamination in cosmic microwave background observations: Diffuse galactic emission in the MAXIMA-I field