Layer Korringa-Kohn-Rostoker electronic structure code for bulk and interface geometries