Detecting selection with a genetic cross