Formation of a macroscopically occupied polariton state in a tunable open-access microcavity under resonant excitation