Formation and detection of ultracold ground-state polar molecules