The open cluster NGC 7142: interstellar extinction, distance and age