Electric field measurement and application based on Rydberg atoms