Evolutionary dynamics of competing phenotype-structured populations in periodically fluctuating environments