Parameter estimation in X-ray astronomy