A photometric and spectroscopic survey of solar twin stars within 50 parsecs of the Sun - I. Atmospheric parameters and color similarity to the Sun