Safety investigation of partially filled railway tank cars