Ion energy distributions at a capacitively and directly coupled electrode immersed in a plasma generated by a remote source