Remanent magnetization in single crystals of YBa2Cu3O7