Batch Effect Detection via Guided Principal Components Analysis