How to find the perfect parking spot, according to science