Direct position analysis of the Stewart platform mechanism