Thermoacoustic wave generation in multilayered thermophones with cylindrical and spherical geometries