Phase transitions in Ru-based thick-film (cermet) resistors