p-Form electrodynamics