Rapid estimation of elastic constants by molecular dynamics simulation under constant stress