Automated Extended Aperture Photometry for K2 RR Lyrae stars