Relativistic spectral features from X-ray-illuminated spots and the measure of the black hole mass in active galactic nuclei