Updated examples to be able to build for C5 and P4. Added Ethernet support for static_ip example.
Closes https://github.com/espressif/esp-idf/issues/7251