Correlations of Coronal X-Ray Emission with Activity, Mass, and Age of the Nearby K and M Dwarfs