Locating liquid-solid transitions in computer simulations based on local structure analysis