Orientation of ocean floor basaltic rocks at time of cooling: A general method