The prime and generalized nullspaces of right regular pencils