Stanley to buy Swedish security firm