Development of superconducting microwave resonators for terahertz intensity mapping from balloon and space