Sub-kelvin thermometer for on-chip measurements of microwave devices utilizing two-level systems in superconducting microresonators