Optical exciton Aharonov-Bohm effect, persistent current, and magnetization in semiconductor nanorings of type I and II