Developing and validating a cardiovascular risk score for patients in the community with prior cardiovascular disease