Adaptive evolutionary Monte Carlo algorithm for optimization with applications to sensor placement problems