Electrostatic trapping and in situ detection of Rydberg atoms above chip-based transmission lines