UBVI photometry of the intermediate‐age open cluster NGC 6939