fix bug in global assemble regarding locating x
fix bug in global assemble regarding locating x

In old code, if x is exactly the first end node (the smaller) of the
domain, the code would determine that x is located on the last element,
while the correct should be the first element. Now it works well.
(though it may not work efficiently)

piyueh/SEM-Toolbox