Oxygen-rich semiregular and irregular variables