Electric And Magnetic Response Properties Of Topological Insulators In Two And Three Dimensions