Create a dictionary named elements where each key is an element's symbol (e.g., 'H', 'O', 'N'), and its value is another dictionary with keys 'atomic_number' and 'atomic_weight' corresponding to its properties. Include at least 5 elements in your dictionary, then write a function to print the properties of a given element by its symbol.