Detecting and quantifying natural selection at two linked loci from time series data of allele frequencies with forward-in-time simulations