Optical orientation and alignment of excitons in ensembles of inorganic perovskite nanocrystals