Convert public key to PEM format