Ideals of MV-semirings and MV-algebras