The growth of competing microbial populations in a CSTR with periodically varying inputs