Small-area estimation for public health surveillance using electronic health record data: reducing the impact of underrepresentation