The effective polarization and magnetization fields in terms of charge-current densities