Green synthetic investigation and spectral characterization of some spiro pyrazolidine‐based heterocycles with potential biological activity