The relationship between optical attenuation and black carbon concentration for ambient and source particles